//
//  Net.h
//  Computer
//
//  Created by qianfeng on 15/10/21.
//  Copyright © 2015年 qianfeng. All rights reserved.
//

#import <Foundation/Foundation.h>

//定义成功回调block和失败回调block
typedef void (^SuccessBlock)(id object);//成功回传数据
typedef void(^FailureBlock)(NSError *error);//失败回传数据

@interface Net : NSObject

//Get方式网络请求
+(void)getHttpURL:(NSString *)url completation:(SuccessBlock)success failure:(FailureBlock)failure;
//Post方式网络请求
+(void)postHttpURL:(NSString *)url parameter:(NSDictionary *)parameter completation:(SuccessBlock)success failure:(FailureBlock)failure;
//设置状态栏指示器
+(void)setNetworkActivityIndicator:(BOOL)bo;
@end
